package com.yun.zf.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yun.zf.common.admin.domain.SysRoleDept;
import com.yun.zf.system.mapper.SysRoleDeptMapper;
import com.yun.zf.system.service.SysRoleDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色和部门关联表 服务实现类
 * </p>
 *
 * @author cj
 * @since 2021-05-08
 */
@Service
public class SysRoleDeptServiceImpl extends ServiceImpl<SysRoleDeptMapper, SysRoleDept> implements SysRoleDeptService {

    @Autowired
    private  SysRoleDeptMapper roleDeptMapper;
    @Override
    public boolean batchRoleDept(List<SysRoleDept> list) {
        return  this.saveBatch(list);
    }

    @Override
    public int deleteRoleDeptByRoleId(Long roleId) {
        return    roleDeptMapper.deleteRoleDeptByRoleId(roleId);
    }
}
